package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 平台优惠活动，存储平台上的各种优惠活动信息对象 pingtaiyouhui
 * 
 * @author ruoyi
 * @date 2024-08-14
 */
public class Pingtaiyouhui extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠活动 */
    private Long ptyhId;

    private Huodongguize huodongguize;
    private Hudongleixing hudongleixing;
    private Yonghuleixing yonghuleixing;
    private Long yonghuYhid;

    public Long getYonghuYhid() {
        return yonghuYhid;
    }

    public void setYonghuYhid(Long yonghuYhid) {
        this.yonghuYhid = yonghuYhid;
    }

    public Huodongguize getHuodongguize() {
        return huodongguize;
    }

    public void setHuodongguize(Huodongguize huodongguize) {
        this.huodongguize = huodongguize;
    }

    public Hudongleixing getHudongleixing() {
        return hudongleixing;
    }

    public void setHudongleixing(Hudongleixing hudongleixing) {
        this.hudongleixing = hudongleixing;
    }

    public Yonghuleixing getYonghuleixing() {
        return yonghuleixing;
    }

    public void setYonghuleixing(Yonghuleixing yonghuleixing) {
        this.yonghuleixing = yonghuleixing;
    }

    /** 活动类型ID */
    @Excel(name = "活动类型ID")
    private Long hdlxId;

    /** 活动规则ID */
    @Excel(name = "活动规则ID")
    private Long hdgzId;

    /** 用户类型ID */
    @Excel(name = "用户类型ID")
    private Long yhlxId;

    /** 有效天数 */
    @Excel(name = "有效天数")
    private Long ptyhYx;

    /** 应用范围 */
    @Excel(name = "应用范围")
    private String ptyhFw;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ptyhCreatetime;

    /** 活动状态 */
    @Excel(name = "活动状态")
    private String ptyhZt;

    public void setPtyhId(Long ptyhId) 
    {
        this.ptyhId = ptyhId;
    }

    public Long getPtyhId() 
    {
        return ptyhId;
    }
    public void setHdlxId(Long hdlxId) 
    {
        this.hdlxId = hdlxId;
    }

    public Long getHdlxId() 
    {
        return hdlxId;
    }
    public void setHdgzId(Long hdgzId) 
    {
        this.hdgzId = hdgzId;
    }

    public Long getHdgzId() 
    {
        return hdgzId;
    }
    public void setYhlxId(Long yhlxId) 
    {
        this.yhlxId = yhlxId;
    }

    public Long getYhlxId() 
    {
        return yhlxId;
    }
    public void setPtyhYx(Long ptyhYx) 
    {
        this.ptyhYx = ptyhYx;
    }

    public Long getPtyhYx() 
    {
        return ptyhYx;
    }
    public void setPtyhFw(String ptyhFw) 
    {
        this.ptyhFw = ptyhFw;
    }

    public String getPtyhFw() 
    {
        return ptyhFw;
    }
    public void setPtyhCreatetime(Date ptyhCreatetime) 
    {
        this.ptyhCreatetime = ptyhCreatetime;
    }

    public Date getPtyhCreatetime() 
    {
        return ptyhCreatetime;
    }
    public void setPtyhZt(String ptyhZt) 
    {
        this.ptyhZt = ptyhZt;
    }

    public String getPtyhZt() 
    {
        return ptyhZt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ptyhId", getPtyhId())
            .append("hdlxId", getHdlxId())
            .append("hdgzId", getHdgzId())
            .append("yhlxId", getYhlxId())
            .append("ptyhYx", getPtyhYx())
            .append("ptyhFw", getPtyhFw())
            .append("ptyhCreatetime", getPtyhCreatetime())
            .append("ptyhZt", getPtyhZt())
            .toString();
    }
}
